﻿#ifndef PROGRESSSERVICE_H
#define PROGRESSSERVICE_H

#include <QObject>
#include <progressdao.h>

class ProgressService : public QObject
{
    Q_OBJECT
public:
    explicit ProgressService(QObject *parent = nullptr);
    ~ProgressService();
    bool getPageList(uint64_t &total,QList<Progress> &users,const  uint64_t &page,const  uint64_t &pageSize);
    bool getList(QList<Progress> &list);
    bool getOne(Progress &object);
    bool saveOne(Progress &object);
    bool deleteOne(Progress &object);
    QSqlDatabase getDb() const;

private:
    QSqlDatabase db;

};

#endif // PROGRESSSERVICE_H
